package com.netease.file;

/**
 * @desctiption
 * @Author bjweitingting
 * @date 2018/6/4
 **/
public class Main0604 {
    public static void main(String[] args) {
        String path = "C:\\Users\\bjweitingting\\Desktop\\新建文件夹\\info.log.2018-05-";
        String test = "中国5月CPI月率";
        String test2 = "id = 0";
        String test3 = "[repairRedisFinance] finnace_id";
        for (int i =8; i < 31; i++) {
            String tmp = path;
            tmp += i + "/info.log.2018-05-" + i;
            String file = Main.readFile(tmp);
            if (file.contains(test))
                System.out.println(i);
            if (file.contains(test2)) {
                System.out.println("test2=" + i);
            }
            if (file.contains(test3)) {
                System.out.println("test3" + i);
            }
        }
        path = "C:\\Users\\bjweitingting\\Desktop\\新建文件夹\\info.log.2018-06-0";
        for (int i = 1; i < 4; i++) {
            String tmp = path;
            tmp += i + "/info.log.2018-06-0" + i;
            String file = Main.readFile(tmp);
            if (file.contains(test))
                System.out.println(i);
            if (file.contains(test2)) {
                System.out.println("test2=" + i);
            }
            if (file.contains(test3)) {
                System.out.println("test3" + i);
            }
        }
        System.out.println("end");
//        String path = "C:\\Users\\bjweitingting\\Desktop\\新建文件夹\\info.log";
//        String file = Main.readFile(path);
    }
}
